<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="">
	<meta http-equiv="description" content="This is my page">
	
  </head>
  
  <body>
    <center>
    	<s:form name="frm" id="frm" method="post" action="" namespace="">
    		<jsp:include page="/common/batchUpload/upload.jsp">
		    	<jsp:param name="action" value="ajax/testUpload.action"/>
		    	<jsp:param name="maxSize" value="100KB"/>
		    	<jsp:param name="fileCount" value="0"/>
		    	<jsp:param name="fileQueue" value="2"/>
	    		<jsp:param name="fileType" value="*.jpg;*.gif;*.doc"/>
	    		<jsp:param name="afterUpload" value="callBack"/>
	    	</jsp:include>
	    	<div id="div1"></div>
	    	<input type="button" value="提  交" onclick="aaa();" style="margin-left: 2px; font-size: 8pt; height: 29px;" />
    	</s:form>
    </center>
    
    <script type="text/javascript">
    $(function(){
    });
    
    function aaa()
    {
        swfu.setPostParams({'hello':'world'});
    	upload();
    }

    function callBack(file)
    {
    }

    function uploadComplete(file)
    {
        var div1 = $('#div1');
        div1.html(div1.html() + file.name + '<br/>');
    }

    function uploadSuccess(file, serverData) {
    	try {
    		var progress = new FileProgress(file, this.customSettings.progressTarget);
    		progress.setComplete();
    		progress.setStatus("Complete.");
    		progress.toggleCancel(false);
    		alert(eval('('+serverData+')').newName);

    	} catch (ex) {
    		this.debug(ex);
    	}
    }
    </script>
  </body>
</html>
